package com.comm.db.pojo;

import com.alibaba.common.lang.StringUtil;

/**
 * Resumebasictable entity. @author MyEclipse Persistence Tools
 */

public class Resumebasictable implements java.io.Serializable {


	// Fields

	// Fields
	    private String fromId;//new 0  来源ID
		private Integer resumeId;//pk
		private Integer userId;
		private String userName;
		private String birthDay;
		private Integer age;
		private Integer married;
		private String experienceTimeVal; //从业时间
		private String highestDegree;//最高学历
		private String currentSalary;// 当前薪水 new
		private String country;//国家
		private String nationality;//民族

		private String homePhone;//16 
		private String companyPhone;//14
		private String msnorqq;
		private String email;//20
		private String hobbies;//22 兴趣爱好
		private String prize;//23  成绩
		private String jobInterest;//24  求职兴趣
		private String certificateName;//25 学历证书
		private String industryName;//26 行业
		private String languageName;//27 语言
		private String majorName;//28
		private String positionName;//29
		private Integer fillUserId;
		private String fillUser;
		private Integer lastEditUserId;
		private String lastEditUser;
		private String fillDate;
		private String lastEditTime;
		private Integer delTag;//31
		private Integer resumeLock;
		private String companyName;//32 公司
		private String currentCompanyinfo;//33 目前公司 
		private Integer cvid;//简历上传ID
		private String certtype;
		private String certno;
		private String mobile;//15
		//new 
		private String workExperience;// 34
		private String edu;// 35: 教育经历
		private String languageSkill;// 36
		private String itSkill;// 37
		private String projectExperience;// 38
		private String selfAssessment;// 39
		private String trainer;// 40
		private String others;//41
		private String address;//
		private String weibo;
		private String sex;

	// Constructors

	public String getSex() {
			return sex;
		}

		public void setSex(String sex) {
			this.sex = sex;
		}

	/** default constructor */
	public Resumebasictable() {
	}

	/** full constructor */
	public Resumebasictable(Integer userId, String userName, String birthDay,
			Integer age, Integer married, String experienceTimeVal,
			String highestDegree, String address, String country,
			String nationality, String homePhone, String companyPhone,
			String msnorqq, String email, String hobbies, String prize,
			String jobInterest, String certificateName, String industryName,
			String languageName, String majorName, String positionName,
			Integer fillUserId, String fillUser, Integer lastEditUserId,
			String lastEditUser, String fillDate, String lastEditTime,
			Integer delTag, Integer resumeLock, String companyName,
			String currentCompanyinfo, Integer cvid, String certtype,
			String certno, String mobile, String fromId, String currentSalary,
			String workExperience, String edu, String languageSkill,
			String itSkill, String projectExperience, String selfAssessment,
			String trainer, String others,String weibo) {
		this.userId = userId;
		this.userName = userName;
		this.birthDay = birthDay;
		this.age = age;
		this.married = married;
		this.experienceTimeVal = experienceTimeVal;
		this.highestDegree = highestDegree;
		this.address = address;
		this.country = country;
		this.nationality = nationality;
		this.homePhone = homePhone;
		this.companyPhone = companyPhone;
		this.msnorqq = msnorqq;
		this.email = email;
		this.hobbies = hobbies;
		this.prize = prize;
		this.jobInterest = jobInterest;
		this.certificateName = certificateName;
		this.industryName = industryName;
		this.languageName = languageName;
		this.majorName = majorName;
		this.positionName = positionName;
		this.fillUserId = fillUserId;
		this.fillUser = fillUser;
		this.lastEditUserId = lastEditUserId;
		this.lastEditUser = lastEditUser;
		this.fillDate = fillDate;
		this.lastEditTime = lastEditTime;
		this.delTag = delTag;
		this.resumeLock = resumeLock;
		this.companyName = companyName;
		this.currentCompanyinfo = currentCompanyinfo;
		this.cvid = cvid;
		this.certtype = certtype;
		this.certno = certno;
		this.mobile = mobile;
		this.fromId = fromId;
		this.currentSalary = currentSalary;
		this.workExperience = workExperience;
		this.edu = edu;
		this.languageSkill = languageSkill;
		this.itSkill = itSkill;
		this.projectExperience = projectExperience;
		this.selfAssessment = selfAssessment;
		this.trainer = trainer;
		this.others = others;
		this.weibo=weibo;
	}

	// Property accessors

	/**
	 * Getter method for property <tt>weibo</tt>.
	 * 
	 * @return property value of weibo
	 */
	public String getWeibo() {
		return weibo;
	}

	/**
	 * Setter method for property <tt>weibo</tt>.
	 * 
	 * @param weibo value to be assigned to property weibo
	 */
	public void setWeibo(String weibo) {
		this.weibo = weibo;
	}

	public Integer getResumeId() {
		return this.resumeId;
	}

	public void setResumeId(Integer resumeId) {
		this.resumeId = resumeId;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName =subString(userName,50);
	}

	public String getBirthDay() {
		return this.birthDay;
	}

	public void setBirthDay(String birthDay) {
		this.birthDay =subString(birthDay,50);
	}

	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getMarried() {
		return this.married;
	}

	public void setMarried(Integer married) {
		this.married = married;
	}

	public String getExperienceTimeVal() {
		return this.experienceTimeVal;
	}

	public void setExperienceTimeVal(String experienceTimeVal) {
		this.experienceTimeVal = subString(experienceTimeVal,500);
	}

	public String getHighestDegree() {
		return this.highestDegree;
	}

	public void setHighestDegree(String highestDegree) {
		this.highestDegree = subString(highestDegree,300);
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address =  subString(address,300);
	}

	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = subString(country,500);
	}

	public String getNationality() {
		return this.nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = subString(nationality,500);
	}

	public String getHomePhone() {
		return this.homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone =  subString(homePhone,50);
	}

	public String getCompanyPhone() {
		return this.companyPhone;
	}

	public void setCompanyPhone(String companyPhone) {
		this.companyPhone = subString(companyPhone,500);
	}

	public String getMsnorqq() {
		return this.msnorqq;
	}

	public void setMsnorqq(String msnorqq) {
		this.msnorqq =subString(msnorqq,50);
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = subString(email,100);
	}

	public String getHobbies() {
		return this.hobbies;
	}

	public void setHobbies(String hobbies) {
		this.hobbies =subString(hobbies,300);
	}

	public String getPrize() {
		return this.prize;
	}

	public void setPrize(String prize) {
		this.prize =subString(prize,300);
	}

	public String getJobInterest() {
		return this.jobInterest;
	}

	public void setJobInterest(String jobInterest) {
		this.jobInterest = subString(jobInterest,500);
	}

	public String getCertificateName() {
		return this.certificateName;
	}

	public void setCertificateName(String certificateName) {
		this.certificateName =   subString(certificateName,500);
	}

	public String getIndustryName() {
		return this.industryName;
	}

	public void setIndustryName(String industryName) {
		this.industryName =  subString(industryName,500);
	}

	public String getLanguageName() {
		return this.languageName;
	}

	public void setLanguageName(String languageName) {
		this.languageName = subString(languageName,500);
	}

	public String getMajorName() {
		return this.majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName =  subString(majorName,300);
	}

	public String getPositionName() {
		return this.positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName =  subString(positionName,300);
	}

	public Integer getFillUserId() {
		return this.fillUserId;
	}

	public void setFillUserId(Integer fillUserId) {
		this.fillUserId = fillUserId;
	}

	public String getFillUser() {
		return this.fillUser;
	}

	public void setFillUser(String fillUser) {
		this.fillUser = fillUser;
	}

	public Integer getLastEditUserId() {
		return this.lastEditUserId;
	}

	public void setLastEditUserId(Integer lastEditUserId) {
		this.lastEditUserId = lastEditUserId;
	}

	public String getLastEditUser() {
		return this.lastEditUser;
	}

	public void setLastEditUser(String lastEditUser) {
		this.lastEditUser = lastEditUser;
	}

	public String getFillDate() {
		return this.fillDate;
	}

	public void setFillDate(String fillDate) {
		this.fillDate = fillDate;
	}

	public String getLastEditTime() {
		return this.lastEditTime;
	}

	public void setLastEditTime(String lastEditTime) {
		this.lastEditTime = lastEditTime;
	}

	public Integer getDelTag() {
		return this.delTag;
	}

	public void setDelTag(Integer delTag) {
		this.delTag = delTag;
	}

	public Integer getResumeLock() {
		return this.resumeLock;
	}

	public void setResumeLock(Integer resumeLock) {
		this.resumeLock = resumeLock;
	}

	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName =  subString(companyName,500);
	}

	public String getCurrentCompanyinfo() {
		return this.currentCompanyinfo;
	}

	public void setCurrentCompanyinfo(String currentCompanyinfo) {
		this.currentCompanyinfo = subString(currentCompanyinfo,500);
	}

	public Integer getCvid() {
		return this.cvid;
	}

	public void setCvid(Integer cvid) {
		this.cvid = cvid;
	}

	public String getCerttype() {
		return this.certtype;
	}

	public void setCerttype(String certtype) {
		this.certtype = subString(certtype,50);
	}

	public String getCertno() {
		return this.certno;
	}

	public void setCertno(String certno) {
		this.certno = subString(certno,100);
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = subString(mobile,100);
	}

	public String getFromId() {
		return this.fromId;
	}

	public void setFromId(String fromId) {
		this.fromId = subString(fromId,100);
	}

	public String getCurrentSalary() {
		return this.currentSalary;
	}

	public void setCurrentSalary(String currentSalary) {
		this.currentSalary = subString(currentSalary,500);
	}

	public String getWorkExperience() {
		return this.workExperience;
	}

	public void setWorkExperience(String workExperience) {
		this.workExperience = subString(workExperience,2000);
	}

	public String getEdu() {
		return this.edu;
	}

	public void setEdu(String edu) {
		this.edu = subString(edu,300);
	}

	public String getLanguageSkill() {
		return this.languageSkill;
	}

	public void setLanguageSkill(String languageSkill) {
		this.languageSkill = subString(languageSkill,300);
	}

	public String getItSkill() {
		return this.itSkill;
	}

	public void setItSkill(String itSkill) {
		 
		this.itSkill =  subString(itSkill,300);
	}

	public String getProjectExperience() {
		return this.projectExperience;
	}

	public void setProjectExperience(String projectExperience) {
		 
		this.projectExperience =subString(projectExperience,2000);
	}

	public String getSelfAssessment() {
		return this.selfAssessment;
	}

	public void setSelfAssessment(String selfAssessment) {
		 
		this.selfAssessment =subString(selfAssessment,300);
	}

	public String getTrainer() {
		return this.trainer;
	}

	public void setTrainer(String trainer) {
		 
		this.trainer = subString(trainer,300);
	}

	public String getOthers() {
		return this.others;
	}

	public void setOthers(String others) {
		 
		this.others = subString(others,300);
	}
	/**
	 * 数据库入库检查
	 * @param string
	 * @param length
	 * @return
	 */
	private   String subString(String string,int length){
		if(StringUtil.isBlank( string)) return "";
		if (string.length() > length/3)
			string = StringUtil.substring(string, 0, length/3);
		return string;
	}
	

}